import request from '@/utils/request'

// 查询试题列表
export function listQuestion(id) {
  console.log(id)
  return request({
    url: '/system/question/list',
    method: 'get',
    params: {id}
  })
}
export function listQuestion_bank(id) {
  console.log(id)
  return request({
    url: '/system/question/listBank',
    method: 'get',
    params: {id}
  })
}
export function queryQuestionsByCondition(param) {
  console.log(param)
  return request({
    url: '/system/question/queryQuestionsByCondition',
    method: 'get',
    params: {param}
  })
}
export function addQuestion(param) {
  console.log(param)
  return request({
    url: '/system/question/addQuestion',
    method: 'get',
    params: {param}
  })
}
export function updateQuestion(param) {
  console.log(param)
  return request({
    url: '/system/question/updateQuestion',
    method: 'get',
    params: {param}
  })
}
export function deleteQuestion(param) {
  console.log(param)
  return request({
    url: '/system/question/deleteQuestion',
    method: 'get',
    params: {param}
  })
}

// 查询试题详细
